package com.c.characteristic;
/**继承的练习使用*/
public class TestSuper {

    public static void main(String[] args) {
        //Sup sup1=new Sup();
        Sup sup2=new Sup(2);
        Sup sup3=new Sup("a");
    }
}
class Super{

    public Super(){
        System.out.println("Super()");
    }
    public Super(String a){
        System.out.println("Super(String)");
    }
}
class Sup extends Super{

    public Sup(){

        System.out.println("Sup()");
    }
    public Sup(int i){
        this();
        System.out.println("Sup(int)");
    }
    public Sup(String a){
        super(a);
        System.out.println("Sup(String)");
    }
}
